﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace XNAGame_Lab1
{
    public class Hat : CharactorItem
    {

             public Hat(Charactor myXNA,ContentManager content, List<string> strTexture, int nSprites, Vector2 topleft, Vector2 size):base (myXNA ,content,strTexture,nSprites,topleft,size)
        {
                      // this.charactor = myXNA;

        }
             public Hat(Charactor myXNA, ContentManager content, string refix, int nSprites, Vector2 topleft, Vector2 size)
                       : base(myXNA, content, refix, nSprites, topleft, size)
        {
         //   this.charactor = myXNA;
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            this.TopLeft =new Vector2( this.charactor.TopLeft.X-24,this.charactor.TopLeft.Y-20);
            base.Draw(gameTime, spriteBatch);
        }
    }
}
